<template>
  <div>
    <!-- 1. 不传结构 -->
    <MyDialog></MyDialog>
    <!-- 2. 传结构 -->
    <MyDialog>
      <h2>真的吗</h2>
      <h2>Vue很Easy</h2>
    </MyDialog>
  </div>
</template>

<script>
import MyDialog from './components/MyDialog.vue'
export default {
  data () {
    return {

    }
  },
  components: {
    MyDialog
  }
}
</script>

<style>
body {
  background-color: #b3b3b3;
}
</style>